FROM openjdk:11.0.16-jdk-slim

RUN useradd -u 1000 -U ajl

COPY ./target/*.jar /home/ajl/app.jar
EXPOSE 8080

USER ajl
WORKDIR /home/ajl

ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-jar","/home/ajl/app.jar"]
